package com.atguigu.spzx.manager.service.log.impl;

import com.atguigu.spzx.common.service.OperLogService;
import com.atguigu.spzx.manager.mapper.OperLogMapper;
import com.atguigu.spzx.model.entity.log.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Mahone
 */
@Service
public class OperLogServiceImpl implements OperLogService {

    @Autowired
    private OperLogMapper operLogMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW,rollbackFor = Exception.class)
    @Override
    public void insertSysOperLog(SysOperLog sysOperLog) {
        operLogMapper.insertSysOperLog(sysOperLog);
    }
}
